package edu.zbtc.sunxd.a3activity;

import androidx.appcompat.app.AppCompatActivity;

import android.content.Intent;
import android.os.Bundle;
import android.widget.Button;

public class MainActivity extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
        Button btn1 = findViewById(R.id.button1);
        btn1.setOnClickListener(v -> {
            Intent i = new Intent(this, FirstActivity.class);
            startActivity(i);
        });

        Button btn2 = findViewById(R.id.button2);
        btn2.setOnClickListener(v -> {
            Intent i = new Intent(this, SecondActivity.class);
            startActivity(i);
        });

        Button btn3 = findViewById(R.id.button3);
        btn3.setOnClickListener(v -> {
            Intent i = new Intent(this, ThirdActivity.class);
            startActivity(i);
        });
    }
}